package com.william.jdbcplus.core.ds;

/**
 * 数据源上下文
 *
 * @author william
 */
public class DataSourceContextHolder {

    private static final ThreadLocal<String> dataSourceHolder = new ThreadLocal<String>();

    public static void set(String dsCode) {
        dataSourceHolder.set(dsCode);
    }

    public static String get() {
        return dataSourceHolder.get();
    }

    public static void remove() {
        dataSourceHolder.remove();
    }

}